import request from '@/utils/request'

// 查询卡牌问答的案例列表
export function listDivineCase(query) {
  return request({
    url: '/system/divineCase/list',
    method: 'get',
    params: query
  })
}

// 查询卡牌问答的案例详细
export function getDivineCase(id) {
  return request({
    url: '/system/divineCase/' + id,
    method: 'get'
  })
}

// 新增卡牌问答的案例
export function addDivineCase(data) {
  return request({
    url: '/system/divineCase',
    method: 'post',
    data: data
  })
}

// 修改卡牌问答的案例
export function updateDivineCase(data) {
  return request({
    url: '/system/divineCase',
    method: 'put',
    data: data
  })
}

// 删除卡牌问答的案例
export function delDivineCase(id) {
  return request({
    url: '/system/divineCase/' + id,
    method: 'delete'
  })
}
